/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.system.pojo.entity.cuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类
 *
 * @author Chill
 */
@Data
@TableName("agent_user_record")
@Schema(description = "c端用户")
public class AgentUser implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	/**
	 * 租户id
	 */
	@Schema(description = "租户id")
	private String tenantId;

	@Schema(description = "用户类型：1:权益，2:分销")
	private Integer userType;

	/**
	 * 用户uuid, 作为分销用户的邀请码
	 */
	@Schema(description = "用户uuid")
	private String uuId;
	/**
	 * 代理商公众号的openid
	 */
	@Schema(description = "代理商公众号的openid")
	private String openId;
	/**
	 * 账号
	 */
	@Schema(description = "账号")
	private String account;
	/**
	 * 密码
	 */
	@Schema(description = "密码")
	private String password;
//	/**
//	 * unionId 共享平台标识符
//	 */
//	@Schema(description = "unionId")
//	private String unionId;
	/**
	 * 微信昵称
	 */
	@Schema(description = "微信昵称")
	private String wechatNickName;
	/**
	 * 微信头像地址
	 */
	@Schema(description = "微信头像地址")
	private String wechatAvatarUrl;

	@Schema(description = "微信账号")
	private String wechatAccount;

	/**
	 * 名字
	 */
	@Schema(description = "名字")
	private String userName;
	/**
	 * 用户手机号
	 */
	@Schema(description = "用户手机号")
	private String userPhone;
	/**
	 * 身份证件号码
	 */
	@Schema(description = "身份证件号码")
	private String identityCardNumber;
	/**
	 * 实名状态 0:否 1:是
	 */
	@Schema(description = "实名状态 0:否 1:是")
	private Integer realNameState;

	@Schema(description = "实名时间")
	private Date realNameTime;
	/**
	 * 会员状态 0:否 1:是
	 */
	@Schema(description = "会员状态 0:否 1:是")
	private Integer memberState;
	/**
	 * 权益次数 默认：0
	 */
	@Schema(description = "权益次数 默认：0")
	private Integer equityPurchasesNumber;
	/**
	 * 权益赠送次数 默认：0
	 */
	@Schema(description = "权益赠送次数 默认：0")
	private Integer equityGiftNumber;
	/**
	 * 总设备数 默认：0
	 */
	@Schema(description = "总设备数 默认：0")
	private Integer totalDevicesNumber;


	/**
	 * 总返现金额
	 */
	@Schema(description = "总返现金额")
	private String totalBackAmount;
	/**
	 * 总提现金额
	 */
	@Schema(description = "总提现金额")
	private String totalWithdrawalAmount;
	/**
	 * 是否关注公众号 0:否 1:是
	 */
	@Schema(description = "是否关注公众号 0:否 1:是")
	private Integer followState;
	/**
	 * 启用状态 0:否 1:是
	 */
	@Schema(description = "启用状态 0:否 1:是")
	private Integer enableState;
	/**
	 * 当前余额
	 */
	@Schema(description = "当前余额")
	private String currentBalance;

	@Schema(description = "等级标签：0 普通等级，1 团员等级，2 团长等级")
	private Integer gradeLabel;

	/**
	 * 最近登录时间
	 */
	@Schema(description = "最近登录时间")
	private Date recentLoginTime;
	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@Schema(description = "更新时间")
	private Date updateTime;
	/**
	 * 是否删除 0  否 1:是
	 */
	@Schema(description = "是否删除 0  否 1:是")
	private Integer isDeleted;

}
